import request from '@/utils/request'
import {
  renderUrl
} from '@/utils'

const headers = {
  'Content-Type': 'application/json'
}

export function putwithdrawaladopt(data) {
  return request({
    url: '/audit/withdrawal/adopt?withdrawalId=' + data.withdrawalId,
    method: 'put',

    headers
  })
}
export function putwithdrawalreject(data) {
  return request({
    url: '/audit/withdrawal/reject?withdrawalId=' + data.withdrawalId,
    method: 'put',

    headers
  })
}

export function edit(data) {
  return request({
    url: '/admin/member/editByIdInfo',
    method: 'POST',
    data: JSON.stringify(data),
    headers
  })
}

export function del(data) {
  return request({
    url: renderUrl('/admin/member/delById/{id}', data),
    method: 'GET'
  })
}

export default {
  edit,
  del
}
